﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System.Xml;

namespace Fulcrum.WeakEventManager
{
    class WeakEventManagerXmlConfiguration : Fulcrum.WeakEventManager.IWeakEventManagerConfiguration
    {
        public WeakEventManagerXmlConfiguration(XmlReader xmlReader)
        {
            this.Name = xmlReader["Name"];
            this.EventSource = xmlReader["EventSource"];
            this.EventName = xmlReader["EventName"];
            this.EventArgs = xmlReader["EventArgs"];

            xmlReader.Read();
        }

        public string Name
        {
            get;
            private set;
        }

        public string EventSource
        {
            get;
            private set;
        }

        public string EventName
        {
            get;
            private set;
        }

        public string EventArgs
        {
            get;
            private set;
        }
    }
}
